<?php

/**
 * dashboard actions.
 *
 * @package    loquiero
 * @subpackage dashboard
 * @author     loquiero
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class dashboardActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
       
       $this->redirectIf(!$this->getUser()->isAuthenticated(), '@home');
       $this->setLayout('layout_dash');
      
  }

  public function executeLogoutlq(sfWebRequest $request)
  {
    $this->getUser()->signOut();
    $signoutUrl = sfConfig::get('app_sf_guard_plugin_success_signout_url', $request->getReferer());
    //return $this->redirect('' != $signoutUrl ? $signoutUrl : '@home');
    $this->redirect('@home');
  }

  public function executeWishlist(sfWebRequest $request)
  {
    $this->redirectIf(!$this->getUser()->isAuthenticated(), '@home');
    $this->setLayout('layout_dash');
    
  }

}
